package service;

import Utils.PageUitls;
import bean.Student;
import dao.StudentDao;

import java.util.List;

public class StudentService {
    private StudentDao sd=new StudentDao();
    public int addStudent(Student student){
        return sd.addStudent(student);
    }
    public List<Student> findALLStudent(PageUitls pu){
        return sd.findAllStudent(pu);
    }
    public Student findStudentBySid(int sid){
        return sd.findStudentBySid(sid);
    }
    public int updateStudent(Student student){
        return sd.updateStudent(student);
    }
    public int deleteStudent(Student student){
        return sd.deleteStudent(student);
    }
    public int getTotalCounnt(){
        return sd.getTotalCounnt();
    }
    public Student checkSname(String sname){
        return sd.checkSname(sname);
    }
}
